package com.zmovie.framework.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zmovie.framework.domain.HallType;
import com.zmovie.framework.service.HallTypeService;
import com.zmovie.framework.mapper.HallTypeMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author lenovo
* @description 针对表【hall_type】的数据库操作Service实现
* @createDate 2023-12-02 17:48:20
*/
@Service
public class HallTypeServiceImpl extends ServiceImpl<HallTypeMapper, HallType>
    implements HallTypeService{

    @Override
    public List<HallType> listHallType(HallType hallType) {
        LambdaQueryWrapper<HallType> wrapper = new LambdaQueryWrapper<>();
        wrapper.like(hallType.getName() != null, HallType::getName, hallType.getName());
        wrapper.orderByAsc(HallType::getId);
        return list(wrapper);
    }
}




